using System;
using System.Data;
using WP.Commons;
namespace WP.MF.DataEntity
{
    //=========MProvince  ============================
    [System.ComponentModel.DesignerCategory("Code")]
    public class MOutLookAddinMenuHdrDEL : DataSet, IDataEntity
    {
        //=========mProvince ============================
        public const string TABLENAME = "mOutLookAddinMenuHdr";
        public const string RECID = "RecID";
        public const string RECSTAMP = "RecStamp";
        public const string USERNAME = "UserName";
        public const string OUTLOOKMENUNAME = "OutlookMenuName";
        public const string SERVERNAME="ServerName";
        public const string DBNAME = "DBName";
        public MOutLookAddinMenuHdrDEL()
        {
            //Create mPrinter structure
            CreatePrinterStructure();
        }
        private System.Collections.Specialized.NameValueCollection mVarCollection = new System.Collections.Specialized.NameValueCollection();
        public System.Collections.Specialized.NameValueCollection VarCollection
        {
            get { return mVarCollection; }
            set { mVarCollection = value; }
        }

        //=========mPrinter============================
        private void CreatePrinterStructure()
        {
            DataTable table;
            DataColumnCollection DCC;
            DataColumn DC = new DataColumn();
            table = new DataTable(TABLENAME);
            DCC = table.Columns;

            DC = new DataColumn(RECID, typeof(System.Int32));
            DCC.Add(DC);

            DC = new DataColumn(RECSTAMP, typeof(System.Byte[]));
            DCC.Add(DC);			

            DC = new DataColumn(USERNAME, typeof(System.String));
            DCC.Add(DC);

            DC = new DataColumn(OUTLOOKMENUNAME, typeof(System.String));
            DCC.Add(DC);

            DC = new DataColumn(SERVERNAME, typeof(System.String));
            DCC.Add(DC);

            DC = new DataColumn(DBNAME, typeof(System.String));
            DCC.Add(DC);
            this.Tables.Add(table);
        }
    }
}
